
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGGrabForeground.h>
#include <OpenSG/OSGGrabForegroundBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_GrabForeground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_GrabForeground()
{
    scope* osg_GrabForegroundBase_scope = new scope(
    class_< osg::GrabForegroundBase, bases< osg::Foreground > , boost::noncopyable >("GrabForegroundBase", no_init)
//        .def_readonly("ImageFieldMask", &osg::GrabForegroundBase::ImageFieldMask)
//        .def_readonly("AutoResizeFieldMask", &osg::GrabForegroundBase::AutoResizeFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::GrabForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::GrabForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::GrabForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::GrabForegroundBase::*)() )&osg::GrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::GrabForegroundBase::*)() const)&osg::GrabForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::GrabForegroundBase::getContainerSize)
        //.def("getImage", (osg::ImagePtr& (osg::GrabForegroundBase::*)() )&osg::GrabForegroundBase::getImage, return_value_policy< copy_const_reference >())
        .def("getImage", (const osg::ImagePtr& (osg::GrabForegroundBase::*)() const)&osg::GrabForegroundBase::getImage, return_value_policy< copy_const_reference >())
        //.def("getAutoResize", (bool& (osg::GrabForegroundBase::*)() )&osg::GrabForegroundBase::getAutoResize, return_value_policy< copy_const_reference >())
        .def("getAutoResize", (const bool& (osg::GrabForegroundBase::*)() const)&osg::GrabForegroundBase::getAutoResize, return_value_policy< copy_const_reference >())
        .def("setImage", &osg::GrabForegroundBase::setImage)
        .def("setAutoResize", &osg::GrabForegroundBase::setAutoResize)
        .def("getBinSize", &osg::GrabForegroundBase::getBinSize)
        .def("copyToBin", &osg::GrabForegroundBase::copyToBin)
        .def("copyFromBin", &osg::GrabForegroundBase::copyFromBin)
        .def("create", &osg::GrabForegroundBase::create)
        .def("createEmpty", &osg::GrabForegroundBase::createEmpty)
        .def("shallowCopy", &osg::GrabForegroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::GrabForegroundBase::NextFieldId;
    scope().attr("ImageFieldId") = (int)osg::GrabForegroundBase::ImageFieldId;
    scope().attr("AutoResizeFieldId") = (int)osg::GrabForegroundBase::AutoResizeFieldId;

    delete osg_GrabForegroundBase_scope;

    class_< osg::GrabForeground, bases< osg::GrabForegroundBase > , boost::noncopyable, osg::GrabForegroundRefPtr >("GrabForeground", no_init)
        .def("changed", &osg::GrabForeground::changed)
        .def("dump", &osg::GrabForeground::dump, osg_GrabForeground_dump_overloads_0_2())
        .def("draw", &osg::GrabForeground::draw)
    ;


    register_ptr_to_python<osg::GrabForegroundPtr>();
    implicitly_convertible<osg::GrabForegroundRefPtr, osg::GrabForegroundPtr>();
    implicitly_convertible<osg::GrabForegroundPtr, osg::ForegroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::GrabForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::GrabForegroundPtr>);
}

